package com.wangfa.provider.service.impl;

import com.wangfa.provider.entity.Company;
import com.wangfa.provider.repository.CompanyRepository;
import com.wangfa.provider.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyRepository companyRepository;






    @Override
    public List<Company> list(Company vo) {
        System.out.println("@@@@@@vo"+vo);
        List<Company> list=companyRepository.findAll();

        return list;
    }
}
